﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Template.Web.DocList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" class="pageForm" runat="Server">
<%=_framePage.TabInfoHtml()%>

<div class="pageHeader">
	<div class="searchBar">
     <asp:TextBox ID="tempid" runat="server" cond="tempid" ctltype="textbox" style="display:none"></asp:TextBox>&nbsp;&nbsp;

		<ul class="searchContent">
			<li>
			    <span>标题&nbsp;</span>
			    <asp:TextBox ID="tb_search_title" runat="server" cond="doctitle" ctltype="textbox"></asp:TextBox>&nbsp;&nbsp;
			</li>
			<li>
			    <span>作者&nbsp;</span>
				<asp:TextBox ID="tb_search_author" runat="server" cond="acthor" ctltype="textbox"></asp:TextBox>&nbsp;&nbsp;
			</li>
			<li>
			    <span>分类&nbsp;</span>
                <asp:dropdownlist runat="server" id="ddl_typeid" cond="typeid" ctltype="dropdownlist"></asp:dropdownlist>&nbsp;&nbsp;
			</li>
			<li style="display:none">
			    <span>类型&nbsp;</span>
				<asp:TextBox ID="tb_search_kind" runat="server" cond="kind" ctltype="textbox" ReadOnly="True" ></asp:TextBox>&nbsp;&nbsp;
			</li>
		</ul>
	    <div class="subBar">
			<ul>
			<li>
			    <a class="button" target="dialog" mask="true" href="/SystemManage/Basics/Menu/MenuHelpInfo.aspx?id=<%= _framePage.NavTabId %>"><span>&nbsp;帮&nbsp;助&nbsp;</span></a>
			</li>
			<li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href="/SystemManage/Template/Web/DocDetail.aspx?Kind=<%= _kind %>&tabid=<%= _framePage.NavTabId%>&typeid=<%=Request["typeid"]%>&tempid=<%=Request["tempid"]%>"
			       target="navTab" rel="DocDetail" title="文章明细"><span>添加</span></a></li>
            <li><a class="delete" href="/SystemManage/Template/Web/DocDelete.aspx" target="selectedTodo" title="请确定要删除"><span>删除勾选</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="116">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="60px">编号</th>
				<th width="120px">标题</th>
				<th width="80px">作者</th>
				<th width="80px">分类</th>
				<th width="100px">创建日期</th>
				<th width="100px">修改日期</th>
				<th width="120px" align=center>基本操作</th>
				<th width="120px" align=center>信息预览</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="gridArticle">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("Id")%>>
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td><%# Eval("Id")%></td>
				    <td><%# Server.HtmlEncode(Eval("Title") as String)%></td><%--输出html源代码 --%>
				    <td><%# Server.HtmlEncode(Eval("Author") as String)%></td><%--输出html源代码 --%>
				    <td><%# ParamKit.GetValue("TreeDefType", Eval("TypeId").ToString(), "&nbsp")%></td>
				    <td><%# Eval("CreateDate", "{0:yyyy-MM-dd}") %></td>
				    <td><%# Eval("UpdateDate", "{0:yyyy-MM-dd}") %></td>
				    <td align=center>
                    <a href="/SystemManage/Template/Web/DocDetail.aspx?uid=<%# Eval("Id")%>&Kind=<%= _kind %>&tabid=<%= _framePage.NavTabId%>&typeid=<%=Request["typeid"]%>&tempid=<%=Request["tempid"]%>" onclick="ZLAN_DWZ_EX.open(this);" target="navTab" rel="DocDetail" title="文章明细">编辑</a>&nbsp;&nbsp;
				        <a href="/SystemManage/Template/Web/DocDelete.aspx?ids=<%# Eval("Id")%>" onclick="ZLAN_DWZ_EX.open(this);" target="ajaxTodo" title="请确定要删除">删除</a>
				    </td>
                    <td align=center>
                        <a href="javascript:void(0)" onclick="ZLAN_COMMON.copyAddr('<%#PageUtil.GetPage(PageId, (int)Eval("Id"))%>')">复制地址</a>&nbsp;&nbsp;
				        <a href="<%#PageUtil.GetPage(PageId, (int)Eval("Id"))%>" target="_blank">预览</a>		        
                    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>

<%= _framePage.GetPagerContentHtml() %>

</div>
</form>

